package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="RoomMng"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class RoomMng implements Serializable {

    /** identifier field */
    private Long roomId;

    /** nullable persistent field */
    private Integer builderId;

    /** nullable persistent field */
    private String roomAddress;

    /** nullable persistent field */
    private Integer unit;

    /** nullable persistent field */
    private Integer floor;

    /** nullable persistent field */
    private Integer room;

    /** nullable persistent field */
    private String direction;

    /** nullable persistent field */
    private String roomType;

    /** nullable persistent field */
    private String propertyRight;

    /** nullable persistent field */
    private Double insideArea;

    /** nullable persistent field */
    private Double balconyArea;

    /** nullable persistent field */
    private Double proportionArea;

    /** nullable persistent field */
    private String completeDate;

    /** nullable persistent field */
    private String propertyRightId;

    /** nullable persistent field */
    private String soilId;

    /** nullable persistent field */
    private String ispublished;

    /** nullable persistent field */
    private String isvacantRoom;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public RoomMng(Integer builderId, String roomAddress, Integer unit, Integer floor, Integer room, String direction, String roomType, String propertyRight, Double insideArea, Double balconyArea, Double proportionArea, String completeDate, String propertyRightId, String soilId, String ispublished, String isvacantRoom, String userId, String latestDate, String assoId) {
        this.builderId = builderId;
        this.roomAddress = roomAddress;
        this.unit = unit;
        this.floor = floor;
        this.room = room;
        this.direction = direction;
        this.roomType = roomType;
        this.propertyRight = propertyRight;
        this.insideArea = insideArea;
        this.balconyArea = balconyArea;
        this.proportionArea = proportionArea;
        this.completeDate = completeDate;
        this.propertyRightId = propertyRightId;
        this.soilId = soilId;
        this.ispublished = ispublished;
        this.isvacantRoom = isvacantRoom;
        this.userId = userId;
        this.latestDate = latestDate;
        this.assoId = assoId;
    }

    /** default constructor */
    public RoomMng() {
    }

    /** minimal constructor */
    public RoomMng(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="roomId"
     *             unsaved-value="0"
     *         
     */
    public Long getRoomId() {
        return this.roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    /** 
     *            @hibernate.property
     *             column="builderId"
     *             length="10"
     *         
     */
    public Integer getBuilderId() {
        return this.builderId;
    }

    public void setBuilderId(Integer builderId) {
        this.builderId = builderId;
    }

    /** 
     *            @hibernate.property
     *             column="roomAddress"
     *             length="50"
     *         
     */
    public String getRoomAddress() {
        return this.roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    /** 
     *            @hibernate.property
     *             column="unit"
     *             length="10"
     *         
     */
    public Integer getUnit() {
        return this.unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    /** 
     *            @hibernate.property
     *             column="floor"
     *             length="10"
     *         
     */
    public Integer getFloor() {
        return this.floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    /** 
     *            @hibernate.property
     *             column="room"
     *             length="10"
     *         
     */
    public Integer getRoom() {
        return this.room;
    }

    public void setRoom(Integer room) {
        this.room = room;
    }

    /** 
     *            @hibernate.property
     *             column="direction"
     *             length="6"
     *         
     */
    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    /** 
     *            @hibernate.property
     *             column="roomType"
     *             length="6"
     *         
     */
    public String getRoomType() {
        return this.roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    /** 
     *            @hibernate.property
     *             column="propertyRight"
     *             length="6"
     *         
     */
    public String getPropertyRight() {
        return this.propertyRight;
    }

    public void setPropertyRight(String propertyRight) {
        this.propertyRight = propertyRight;
    }

    /** 
     *            @hibernate.property
     *             column="insideArea"
     *             length="53"
     *         
     */
    public Double getInsideArea() {
        return this.insideArea;
    }

    public void setInsideArea(Double insideArea) {
        this.insideArea = insideArea;
    }

    /** 
     *            @hibernate.property
     *             column="balconyArea"
     *             length="53"
     *         
     */
    public Double getBalconyArea() {
        return this.balconyArea;
    }

    public void setBalconyArea(Double balconyArea) {
        this.balconyArea = balconyArea;
    }

    /** 
     *            @hibernate.property
     *             column="proportionArea"
     *             length="53"
     *         
     */
    public Double getProportionArea() {
        return this.proportionArea;
    }

    public void setProportionArea(Double proportionArea) {
        this.proportionArea = proportionArea;
    }

    /** 
     *            @hibernate.property
     *             column="completeDate"
     *             length="23"
     *         
     */
    public String getCompleteDate() {
        return this.completeDate;
    }

    public void setCompleteDate(String completeDate) {
        this.completeDate = completeDate;
    }

    /** 
     *            @hibernate.property
     *             column="propertyRightId"
     *             length="20"
     *         
     */
    public String getPropertyRightId() {
        return this.propertyRightId;
    }

    public void setPropertyRightId(String propertyRightId) {
        this.propertyRightId = propertyRightId;
    }

    /** 
     *            @hibernate.property
     *             column="soilId"
     *             length="20"
     *         
     */
    public String getSoilId() {
        return this.soilId;
    }

    public void setSoilId(String soilId) {
        this.soilId = soilId;
    }

    /** 
     *            @hibernate.property
     *             column="isPublished"
     *             length="1"
     *         
     */
    public String getIspublished() {
        return this.ispublished;
    }

    public void setIspublished(String ispublished) {
        this.ispublished = ispublished;
    }

    /** 
     *            @hibernate.property
     *             column="isVacantRoom"
     *             length="1"
     *         
     */
    public String getIsvacantRoom() {
        return this.isvacantRoom;
    }

    public void setIsvacantRoom(String isvacantRoom) {
        this.isvacantRoom = isvacantRoom;
    }

    /** 
     *            @hibernate.property
     *             column="userId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="latestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("roomId", getRoomId())
            .toString();
    }

}
